<div class="navbar navbar-default navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header clearfix">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <?php 
               echo Html::anchor(Uri::base().'users/index','Money Lovers',array('class'=>'navbar-brand'));
            ?>
        </div>
        <div class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <?php if(!$current_user):?>
              
            <li><?php echo Html::anchor(Uri::base().'users/login','login')?></li>
            <?php else: ?>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo $current_user->username;// $this->Session->read('Auth.User.username');?> <b class="caret"></b></a>
              <ul class="dropdown-menu">
              	 <li>
              	 	<?php echo Html::anchor(Uri::base().'profiles/index/'.$current_user->id,'Profile')?>
              	 </li>
                 <li>
                 	<?php echo Html::anchor(Uri::base().'users/logout','Logout')?>
                 </li>
              </ul>
            </li>
            <?php endif;?>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
</div>
<br /><br /><br />